//
//  IPMysql.h
//  iphone_test
//
//  Created by whlsxl on 10-5-9.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "SqlResultSet.h"
@interface IPMysql : NSObject {
	NSString *error_msg;
	SqlResultSet *srs;
#pragma mark Mysql connect information
	char *host;
	char *user;
	char *passwd;
	char *db;
	unsigned int port;
	char *unix_socket;
	unsigned int clientflag;
}
#pragma mark method's method
- (void)showLog;

#pragma mark use method 
- (id)init;
- (unsigned int)connect;
- (unsigned int)query:(NSString *)statement;
- (SqlResultSet *)getResult;
- (NSString *)getErrorMsg;

@end
